<?php if (!defined('THINK_PATH')) exit();?>

<!-- widget grid -->

<section id="widget-grid" class="">

	<!-- row -->
	<div class="row">
		
		<!-- NEW WIDGET START -->
		<article class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
			
			<!-- Widget ID (each widget will need unique ID)-->
			<div class="jarviswidget" id="wid-id-0">
				<!-- widget options:
					usage: <div class="jarviswidget" id="wid-id-0" data-widget-editbutton="false">
					
					data-widget-colorbutton="false"	
					data-widget-editbutton="false"
					data-widget-togglebutton="false"
					data-widget-deletebutton="false"
					data-widget-fullscreenbutton="false"
					data-widget-custombutton="false"
					data-widget-collapsed="true" 
					data-widget-sortable="false"
					
				-->
				<header>
					
                    <span class="widget-icon"> <i class="fa fa-comments"></i> </span>
					<h2>监测数据</h2>			
					
				</header>

				<!-- widget div-->
				<div style="padding:0px;">
					
					<!-- widget edit box -->
					<div class="jarviswidget-editbox">
						<!-- This area used as dropdown edit box -->
						<input class="form-control" type="text">	
					</div>
					<!-- end widget edit box -->
					
					<!-- widget content -->
					<div class="widget-body">
                    	<div class="table-responsive">
                            <table class="table table-bordered" id="table_1">
                            <thead>
                                <tr>
                                <th>电台呼号</th>
                                <th>主发频率MHz</th>
                                <th>转发频率MHz</th>
                                <th>监测地点</th>
                                <th>载波电平dBuV</th>
                                <th>L声道电平dB</th>
                                <th>R声道电平dB</th>
                                <th>ST状态</th>
                                <th>监听ID</th>
                                <th>声道选听</th>
                                <th>设备ID</th>
                                <th>报送时间</th>
                                </tr> 
                            </thead>
                            <tbody>   
                            	<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr class="Row">			                              
                                <td align="center">丽水二套</td>                            
                                <td align="center">106.9</td>                            
                                <td align="center"><?php echo ($vo["zfpl"]); ?></td>                            
                                <td align="center">景宁</td>                            
                                <td align="center"><?php echo ($vo["tu"]); ?></td>                            
                                <td align="center"><?php echo ($vo["lsd"]); ?></td>                            
                                <td align="center"><?php echo ($vo["rsd"]); ?></td>                            
                                
                                <?php if($vo["state"] == 0): ?><td align="center">正常</td>
                                <?php elseif($vo["state"] == 1): ?><td align="center" class="che_bg1">载波异常</td>
                                <?php elseif($vo["state"] == 2): ?><td align="center" class="che_bg1">ST异常</td>
                                <?php elseif($vo["state"] == 3): ?><td align="center" class="che_bg1">L声道异常</td>
                                <?php elseif($vo["state"] == 4): ?><td align="center" class="che_bg1">R声道异常</td>
                                <?php elseif($vo["state"] == 5): ?><td align="center" class="che_bg1">音频失落</td>
                                <?php elseif($vo["state"] == 6): ?><td align="center" class="che_bg1">载波衰弱</td><?php endif; ?>
                                                            
                                <td align="center">18967044283</td>                            
                                <td align="center">左右</td>                            
                                <td align="center">33110009018967044283-2</td>                            
                                <td align="center"><?php echo (date("Y-m-d H:i:s",$vo["inputtime"])); ?></td>		            
                                </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                            </tbody>
                            </table>
                            
                            <div class="text-center">
                                <hr>
                                <ul class="pagination no-margin">
                                    <?php echo ($page); ?>
                                </ul>
                            </div>
                            
                        </div>
                           
						
						

					</div>
					<!-- end widget content -->
					
				</div>
				<!-- end widget div -->
				
			</div>
			<!-- end widget -->

		</article>
		<!-- WIDGET END -->
		
	</div>

	<!-- end row -->

	<!-- row -->

	<div class="row">

		<!-- a blank row to get started -->
		<div class="col-sm-12">
			<!-- your contents here -->
		</div>
			
	</div>

	<!-- end row -->

</section>

<script type="text/javascript">

	$(document).ready(function(e) {
        window.setInterval(data_save(),50);
    });



	function data_save(){
			alert('jydd');
		}


	// DO NOT REMOVE : GLOBAL FUNCTIONS!
	pageSetUp();
	
	// PAGE RELATED SCRIPTS


</script>